package com.mashibing.servicemap.controller;

import com.mashibing.servicemap.service.DicDistrictService;
import org.mashibing.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:
 * @create: 2024/4/16 10:20
 * @description:
 */
@RestController
public class DicDistrictController {

    @Autowired
    private DicDistrictService dicDistrictService;

    /**
     * 查询高德行政区划字典项入库
     */
    @GetMapping("/dic-district")
    public ResponseResult initDicDistrict(String keywords) {
        return dicDistrictService.initDicDistrict(keywords);
    }

}
